package a02staticdemo2;

public class textDemo {
    public static void main(String[] args) {

        //测试方法一
        int[] arr = {1,2,3,4,5};
        String str = ArrayUtil.printarr(arr);
        System.out.println("这个数组是:" + str);

        //测试方法2
        double[] arr2 = {1.3,2.3,3.4,4.6};
        double averge = ArrayUtil.getAvg(arr2);
        System.out.println("这个数组的平均值是:" + averge);
    }
}
